import { Animation, CCClass, Component, _decorator } from "cc";
const { ccclass, property } = _decorator;



@ccclass("Flame")
export class Flame extends Component {

    protected start(): void {
        console.log("开始")
        let animation = this.node.getComponent(Animation);
        animation.on(Animation.EventType.FINISHED, this.onAnimationFinish, this)
    }

    // 执行动画执行后的操作;
    onAnimationFinish() {
        console.log('动画执行完毕;')
    }

}